﻿using System.Collections.Generic;
using BoldBrick.OneIntranet.HR.Properties;
using BoldBrick.SharePoint.CommonControls.DataObjects.Base;

namespace BoldBrick.OneIntranet.HR.DataObjects.Lists.CandidatesListData.Views
{
	public class CandidatesView : BaseView
	{
		/// <summary>
		/// Initializes a new instance of this class.
		/// </summary>
		public CandidatesView()
		{
			this.IsDefault = true;
			this.XslLink = Settings.Default.List_Candidates_View_Candidates_XslLink;
			this.ContentTypeId = SharePoint.CommonControls.DataObjects.ContentTypes.ContentTypes.RootFolderContentType.ID;
			this.DefaultViewForContentType = true;

			this.Query = Settings.Default.List_Candidates_View_Candidates_Query;
		}

		protected override string GetTitleResourceKey()
		{
			return "List_Candiates_View_Candidates_Title";
		}

		protected override string GetPageNameResourceKey()
		{
			return "List_Candiates_View_Candiates_PageName";
		}

		public override List<ListColumn> GetViewColumns()
		{
			List<ListColumn> columns = new List<ListColumn>
			                           	{
			                           		SiteColumns.LastNameColumn,
			                           		SiteColumns.FirstNameColumn,
			                           		SiteColumns.PositionLookupColumn,
			                           		SiteColumns.SeniorityLevelLookupColumn,
			                           		SiteColumns.CandidateEmailColumn,
			                           		SiteColumns.CandidatePhoneNumberColumn,
			                           		SiteColumns.LinkedInProfileColumn,
			                           		SiteColumns.CandidateResultColumn,
			                           		SiteColumns.HRWorkflowStatusColumn
			                           	};
			return columns;
		}
	}
}
